.listbox{
    border: 1px solid #abb7c9;
    padding: 1px 0;
    margin: 2px;
    width: 300px;
    min-height: 64px;
    background: white;
    overflow: auto;
}

.listbox .listboxItem{
    display: block;
    width: 144px;
    
    float: left;
    
    border: 1px solid #8798b3;
    margin: 1px 2px;
    
    background-color: #d0d7e3;
    background-image: linear-gradient(bottom, rgb(208,215,227) 1%, rgb(221,228,240) 50%);
    background-image: -o-linear-gradient(bottom, rgb(208,215,227) 1%, rgb(221,228,240) 50%);
    background-image: -moz-linear-gradient(bottom, rgb(208,215,227) 1%, rgb(221,228,240) 50%);
    background-image: -webkit-linear-gradient(bottom, rgb(208,215,227) 1%, rgb(221,228,240) 50%);
    background-image: -ms-linear-gradient(bottom, rgb(208,215,227) 1%, rgb(221,228,240) 50%);

    background-image: -webkit-gradient(
            linear,
            left bottom,
            left top,
            color-stop(0.01, rgb(208,215,227)),
            color-stop(0.5, rgb(221,228,240))
    );
    height: 16px;
    padding:0;
    border-radius: 2px;
    -webkit-border-radius: 2px;
}

.listbox .listboxItem .listboxItemClose{
    background-image: url(ui/close.png);
    width: 14px;
    height: 14px;
    float: right;
    margin: 1px;
}
.listbox .listboxItem .listboxItemClose:hover{
    background-position-y: 14px;
    cursor: pointer;
}

.listbox .listboxItem .listboxItemLabel{
    float: left;
    margin: 0 5px;
    padding: 0;
    font-size: 12px;
    font-family: sans-serif;
    overflow: hidden;
    width: 118px;
}

ul.list{
    background: white;
    list-style: none;
    padding: 0;
    width: 500px;
    padding: 0;
    border: 1px solid grey;
    height: 350px;
    overflow-y: scroll;
    margin: 10px 0 0;

    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

li.listItem{
    padding: 4px;
    font-family: veranda, arial,sans-serif;
    font-size: 12px;
    height: 16px;
    overflow: hidden;
    -webkit-transition: background .2s;
}

.listItemTitle{
    font-weight: bold;
    color: #2f3134;
    float: left;
    width: 35%;
    margin-right: 5%;
    overflow: hidden;
    -webkit-transition: color .2s ease-in-out;
}

.listItemDesc{
    font-style: italic;
    color: #6b737b;
    float: left;
    width: 60%;
    overflow: hidden;
    -webkit-transition: color .2s ease-in-out;
}

li.listItem.selected, li.listItem.selected:hover{
    background: #354e68;
}

li.listItem.selected .listItemTitle, li.listItem.selected .listItemDesc,
li.listItem.selected:hover .listItemTitle, li.listItem.selected:hover .listItemDesc{
    color: #fff;
}

li.listItem:hover{
    background: #5da1e9;
    cursor: pointer;
}

li.listItem:hover .listItemTitle, li.listItem:hover .listItemDesc{
    color: #fff;
}

ul.list::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 11px;
    height: 11px;
    background-color: #efeff0;
}

ul.list::-webkit-scrollbar-thumb {
    border-radius: 11px;
    border: 2px solid #efeff0; /* should match background, can't be transparent */
    background-color: rgba(0, 0, 0, .5);
}

.listbox.vertical{
    height: 100px;
    overflow-y: scroll;
}

.listbox.vertical .listboxItem{
    display: block;
    float: none;
    width: auto;
    margin: 2px 2px 4px;
}


.listbox.vertical::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 11px;
    height: 11px;
    background-color: #efeff0;
}

.listbox.vertical::-webkit-scrollbar-thumb {
    border-radius: 11px;
    border: 2px solid #efeff0; /* should match background, can't be transparent */
    background-color: rgba(0, 0, 0, .5);
}